package com.hopu.petshop.service.impl;

import com.hopu.petshop.dao.PetTypeDAO;
import com.hopu.petshop.entity.PetType;
import com.hopu.petshop.service.PetTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.sql.SQLException;
import java.util.List;

@Service
public class PetTypeServiceImpl implements PetTypeService {

    @Autowired
    private PetTypeDAO petTypeDAO;

    @Override
    public List<PetType> findAllPetTypes() throws SQLException {
        return petTypeDAO.selectAllPetTypes();
    }
}
